package com.wuhongyu.mapper;

import java.util.List;

import com.wuhongyu.entity.Message;

public interface MessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);
    
    List<Message> selectByUserId(Integer userId);
    
    Integer selectCount(Integer userId);
}